<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">

    <div class="layui-card-body">
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs2 think-form-label">等级名称</label>
            <label class="layui-col-xs10">
                <input name="name" required value='{$vo.name|default=""}' placeholder="请输入等级名称" class="layui-input">
            </label>
        </div>
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs2 think-form-label">需要业绩</label>
            <label class="layui-col-xs10">
                <input name="need_amount" required value='{$vo.need_amount|default="0"}' placeholder="请输入需要业绩金额" class="layui-input">
            </label>
        </div>
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs2 think-form-label">需要下级等级</label>
            <label class="layui-col-xs10">
                <input name="need_mid" required value='{$vo.need_mid|default="0"}' placeholder="请输入下级等级编号" class="layui-input">
            </label>
        </div>
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs2 think-form-label">需要下级等级数量</label>
            <label class="layui-col-xs10">
                <input name="need_mid_count" required value='{$vo.need_mid_count|default="0"}' placeholder="请输入下级等级数量" class="layui-input">
            </label>
        </div>
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs2 think-form-label">享受团队收益（%）</label>
            <label class="layui-col-xs10">
                <input name="rewards_profit" required value='{$vo.rewards_profit|default="0"}' placeholder="请输入享受团队收益（%）" class="layui-input">
            </label>
        </div>
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs2 think-form-label">LOGO</label>
            <label class="layui-col-xs10">
                <table class="layui-table">
                <thead>
                <tr>
                    <td width="150px" class="text-center">
                        <input name="logo" type="hidden" value="{$vo.logo|default=''}">
                    </td>
                </tr>
                </thead>
            </table>
            <script>$('[name="logo"]').uploadOneImage()</script>
            </label>
            
        </div>
    </div>

    <div class="hr-line-dashed"></div>
    <div class="layui-form-item text-center">
        {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>
{block name='script'}
<script>
    window.form.render();
</script>
{/block}
